package org.example.order;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/exception")
public class ExceptionController {

    @SentinelResource("exception")
    @GetMapping
    public String exceptionTest() {
        throw new RuntimeException();
    }

}
